import { createBrowserRouter } from "react-router-dom";
import Home from "../pages/Home";
import Login from "../pages/Login";
import Xq from "../pages/Xq";
const router = createBrowserRouter([
  {
    path: "/",
    element: <Home></Home>,
  },
  {
    path: "/login",
    element: <Login></Login>,
  },
  {
    path: "/xq/:id",
    // element: <Xq></Xq>,
    lazy: async () => {
      const { default: Xq, loader } = await import('../pages/Xq')
      return {
        element: <Xq></Xq>,
        loader
      }
    }
  },
]);
export default router;
